import Abstract from '../views/common/abstract.vue';
// const releGroup = r => require.ensure([], () => r(require('../views/releGroup.vue')), 'chunkname2')

export default [{
  path: '/',
  name: '首页',
  component: (resolve) => require(['../views/index.vue'], resolve),
  children: [  
    {
      path:'/statistics',
      name:'运营统计',
      des:'statistics',//判断是否展开导航
      
      meta: {
        // name: '权限管理列表项'
        
      },
 
      component:Abstract,

      children:[
       {
          path: 'statisticsreg',
          name: '注册统计',
          meta: {
            name: '注册统计',
            icon_img:'',
            des:'statisticsreg',//判断是否选中导航

          },
          component: (resolve) => require(['../statistics/statisticsreg.vue'], resolve),
               
        },
        {
          path: 'statisticslogin',
          name: '登录统计',
          meta: {
            name: '登录统计',
            icon_img:'',
            des:'statisticslogin',          

          },
          component: (resolve) => require(['../statistics/statisticslogin.vue'], resolve),
                  
        },
        {
          path: 'statisticstransaction',
          name: '交易统计',
          meta: {
            name: '交易统计',
            icon_img:'',
            des:'statisticstransaction',

          },
          component: (resolve) => require(['../statistics/statisticstransaction.vue'], resolve),
          
          children:[
            {
              path: 'transactionrankings',
              name: '交易量排行',
              meta: {
                icon_img:'',
                des:'statisticstransaction',

              },
              component: (resolve) => require(['../statistics/positionrankings.vue'], resolve),
                          
              hidden:true
            },
            {
              path: 'positionrankings',
              name: '持仓排行',
              meta: {
                icon_img:'',
                des:'statisticstransaction',
              },
              component: (resolve) => require(['../statistics/positionrankings.vue'], resolve),
              hidden:true
            }
          ]
        },
        {
          path: 'statisticscnyrecharge',
          name: 'CNY充值统计',
          meta: {
            name: 'CNY充值统计',
            icon_img:'',
            des:'statisticscnyrecharge',

          },
          component: (resolve) => require(['../statistics/statisticscnyrecharge.vue'], resolve),
                    
        },
        {
          path: 'statisticswithdrawals',
          name: 'CNY提现统计',
          meta: {
            name: 'CNY提现统计',
            icon_img:'',
            des:'statisticswithdrawals',

          },
          component: (resolve) => require(['../statistics/statisticswithdrawals.vue'], resolve),
                    
        },
        {
          path: 'statisticscurrrech',
          name: '充币统计',
          meta: {
            name: '充币统计',
            icon_img:'',
            des:'statisticscurrrech',

          },
          component: (resolve) => require(['../statistics/statisticscurrrech.vue'], resolve),
                    
        },
        {
          path: 'statisticscurrwith',
          name: '提币统计',
          meta: {
            name: '提币统计',
            icon_img:'',
            des:'statisticscurrwith',

          },
          component: (resolve) => require(['../statistics/statisticscurrwith.vue'], resolve),
                    
        },
      ]
    },
    {
      path:'/statisticsfinance',
      name:'财务统计',
      des:'statisticsfinance',//判断是否展开导航
      
      meta: {
        // name: '权限管理列表项'
        icon: '&#xe62e;',
        icon_img:require("../assets/img/key.png"),

      },
      children:[
        {
          path: 'statisticsassets',
          name: '资产负债',
          meta: {
            name: '资产负债',
            icon_img:'',
            des:'statisticsassets',//判断是否选中导航

          },
          component: (resolve) => require(['../statistics/statisticsassets.vue'], resolve),
          
        },
        {
          path: 'statisticscash',
          name: '现金流量',
          meta: {
            name: '现金流量',
            icon_img:'',
            des:'statisticscash',//判断是否选中导航

          },
          component: (resolve) => require(['../statistics/statisticscash.vue'], resolve),
          
        },
        {
          path: 'statisticsprofit',
          name: '利润表',
          meta: {
            name: '利润表',
            icon_img:'',
            des:'statisticsprofit',//判断是否选中导航

          },
          component: (resolve) => require(['../statistics/statisticsprofit.vue'], resolve),
        }
      ]
    }
  ]
}];